package com.gnerv.plug.note;

import com.gnerv.plug.note.action.CreateNoteAction;
import com.gnerv.plug.note.action.SyncNoteAction;
import com.intellij.openapi.actionSystem.ActionGroup;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class NoteGroupAction extends ActionGroup {

    public NoteGroupAction() {
        super();
    }

    public NoteGroupAction(@Nullable String shortName, boolean popup) {
        super(shortName, popup);
    }

    @NotNull
    @Override
    public AnAction[] getChildren(@Nullable AnActionEvent anActionEvent) {
        return new AnAction[]{
                new CreateNoteAction("Create Note", "Create Note", null),
                new SyncNoteAction("Sync Note", "Sync Note", null)
        };
    }
}
